import request from '@/utils/request'
import type {LoginData,LoginResponseData,IofoData} from './model/login'
// 枚举
enum API{
    LOGIN='/admin/acl/index/login',
    Iofo='/admin/acl/index/info',
    LOGINOUT='/admin/acl/index/logout'
}
//登录
export const reqLogin=(data:LoginData)=>request.post<any,LoginResponseData>(API.LOGIN,data)

// 用户信息
export const reqIofo=()=>request.get<any,IofoData>(API.Iofo)

// 退出登录
export const reqLoginOut=()=>request.post<any,any>(API.LOGINOUT)